//
//  TabViewData.swift
//  ClothAccess
//
//  Created by Wei Hua on 2021/2/3.
//


// 底部导航条
struct tabItem: Identifiable {
    let id:UUID = UUID()
    var img: String
    var txt: String
    var showTxt: Bool
    var backgroundColor: Color
    var view: Any
    var hiddenNavigation: Bool = true
}


import Foundation
import SwiftUI

struct TabTest1: View {
    var body: some View {
        Text("TabView 1")
            
    }
}

struct TabTest2: View {
    var body: some View {
        Text("bc")
            
    }
}

struct TabTest3: View {
    var body: some View {
        Text("3")
            
    }
}

struct TabTest4: View {
    var body: some View {
        Text("4")
    }
}

struct TabTest5: View {
    var body: some View {
        Text("5")
    }
}


let Data_TabView: [tabItem] = [
    tabItem(img: "house.fill", txt: "首页", showTxt: true, backgroundColor: .blue, view: TabTest1()),
    tabItem(img:"rectangle.3.offgrid",txt: "分类",showTxt: false, backgroundColor: .green, view: TabTest2()),
    tabItem(img:"smallcircle.fill.circle",txt: "活动",showTxt: false, backgroundColor: .orange, view: TabTest3()),
    tabItem(img:"message.fill",txt: "消息",showTxt: false, backgroundColor: .yellow, view: TabTest4()),
    tabItem(img:"person",txt: "我的",showTxt: false, backgroundColor: .pink, view: TabTest5())
]
